<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let promise = new Promise((res, rej) => {})
        console.log(promise);
        let promise1 = new Promise((res, rej) => {
            res('成功');
        })
        console.log(promise1);
        // let promise2 = new Promise((res, rej) => {
        //     rej('失败');
        // })
        // console.log(promise2);
        let promise3 = new Promise((res, rej) => {
            res('成功');
            rej('失败');
        })
        console.log(promise3);
    </script>
</body>

</html>